package com.anXin.user.feign;

import com.anXin.apis.user.IUserClient;
import com.anXin.model.common.dtos.ResponseResult;
import com.anXin.user.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
public class UserClient implements IUserClient {

    @Resource
    private UserService userService;

    @Override
    @GetMapping("/information/{id}")
    public ResponseResult information(@PathVariable("id")  Long id){
        return userService.userInfo(id);
    }
}
